import Vue from "vue"
import VueRouter from 'vue-router'
Vue.use(VueRouter);
var router = new VueRouter({
    mode:'history',
    routes:[
        {
            path:'/',
            name:'用户列表',
            component:()=>import('../views/List')
        },
        {
            path:'/new',
            name:'新增用户',
            component:()=>import('../views/New')
        },
        {
            path:'/eidt',
            name:"编辑用户",
            component:()=>import('../views/Edit')
        },
        {
            path:'/login',
            name:"用户登录",
            component:()=>import('../views/Login')
        },
    ]
});
export default router